package com.itheima.manager.personManager;

//运动员类
public class Athlete extends Person {
    private String studentNumber;
    private String theClass;

    public Athlete() {
    }

    public Athlete(String name, String sex, String age, String studentNumber, String theClass) {
        super(name, sex, age);
        this.studentNumber = studentNumber;
        this.theClass = theClass;
    }


    public String getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(String studentNumber) {
        this.studentNumber = studentNumber;
    }

    public String getTheClass() {
        return theClass;
    }

    public void setTheClass(String theClass) {
        this.theClass = theClass;
    }

    @Override
    public void eat() {
        System.out.println("运动员吃营养餐");
    }
}
